<?php
class CeldaHelper extends AppHelper {

   	function celdaLink($celda=array()){
	 	$llave = $celda['id'];
		$campo = $celda['campo'];
		if(empty($celda['negrita'])){
			$strong = $campo;
		}else{
			$strong = '<strong>'.$campo.'</strong>';	
		}
		
		if(empty($celda['vista'])){
			$vista='view/'.$llave;
		}else{
			$vista = $celda['vista'].'/'.$llave;	
		}		
	 	$nuevoLink = '<div id="celdas"><a href="'.Router::url($vista).'" title="Ver m&aacute;s detalles">'.$strong.'</a></div>';
		return $nuevoLink;
	}

}
?>